import request from '@/utils/request'

// 查询账号分配列表
export function listIndsvrSsoAppUserMapRoot(query) {
  return request({
    url: '/system/IndsvrSsoAppUserMapRoot/list',
    method: 'get',
    params: query
  })
}

// 查询账号分配详细
export function getIndsvrSsoAppUserMapRoot(id) {
  return request({
    url: '/system/IndsvrSsoAppUserMapRoot/' + id,
    method: 'get'
  })
}

// 新增账号分配
export function addIndsvrSsoAppUserMapRoot(data) {
  return request({
    url: '/system/IndsvrSsoAppUserMapRoot',
    method: 'post',
    data: data
  })
}

// 修改账号分配
export function updateIndsvrSsoAppUserMapRoot(data) {
  return request({
    url: '/system/IndsvrSsoAppUserMapRoot',
    method: 'put',
    data: data
  })
}

// 删除账号分配
export function delIndsvrSsoAppUserMapRoot(id) {
  return request({
    url: '/system/IndsvrSsoAppUserMapRoot/' + id,
    method: 'delete'
  })
}
